%%% My private NAG macros, polished for lotex use.
\def\unix{Un*x}
\def\unices{Un*ces}
\def\prompt{\$}
\def\dqt{\passthru|"|}
\def\car{\passthru|^|}
\def\tld{\passthru|~|}
\def\fnsep{}
\def\prechapter#1{\chapter*{#1}}
\def\postchapter#1{\chapter*{#1}}
\def\presection#1{\section*{#1}}
\def\postsection#1{\section*{#1}}
\def\presubsection#1{\subsection*{#1}}
\def\postsubsection#1{\subsection*{#1}}

%%% Macros for file names etc
\def\map#1{\textit{#1}}    	% NIS map (make this = file)
\def\lib#1{\textit{#1}}	    	% library (ditto)
\def\file#1{\textit{#1}}	% file name
\def\prog#1{\textit{#1}}	% command name
\def\host#1{\textbf{#1}}      	% host name
\def\func#1{\textit{#1}}	% function name (C)
\def\user#1{\textbf{#1}}	% login name
\def\email#1{\textbf{#1}}	% email addr
\def\ngrp#1{\textbf{#1}}	% newsgroup
\def\option#1{\texttt{#1}}  	% command line option
\def\message#1{\texttt{#1}}   	% terminal output
\def\term#1{\texttt{#1}}	% terminal I/O
\def\addr#1{\texttt{#1}} 	% hardware address etc.
\def\keyword#1{\textit{#1}}   	% keyword
\def\mhdr#1{\texttt{#1}}      	% mail message header field
\def\var#1{\texttt{\textsl{#1}}}% <insert foobar here> type of things
\def\shellvar#1{\small\texttt{#1}} % Shell variables.

%%% A hacked-up acbib environment.
\def\acbib#1#2#3#4#5#6#7{
 \bibitem[#2]{#1}
 \begin{itemize}
 \item[{[#2]}] {#4}: {\em #3}. {#5}.
 	\@ifx{#6}{}\else ISBN {#6}\@gobblesp.
 	\fi%
 	\@ifx{#6}{}\else Appr. Price {#7}\@gobblesp.
 	\fi%
 	\par
}
\def\endacbib{\end{itemize}}
